package com.softmaker.service;

import com.softmaker.entity.Idioms;
import com.softmaker.entity.UserInfo;
import com.softmaker.repository.IdiomsRepository;
import com.softmaker.repository.UserInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;


@Service

public class IdiomsService {
    @Autowired
    private IdiomsRepository repository;
    public Idioms addIdioms(Idioms idioms)  {
        return repository.save(idioms);
    }

    public Idioms findIdiomsByData(String data) {
        return repository.findIdiomsByData(data);
    }
}
